<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/2
 * Time: 17:24
 */

namespace App\Admin\Models;

/**
 * App\Admin\Models\FileModel
 *
 * @property int                        $file_id          文件ID
 * @property string                     $file_name        文件名称
 * @property string                     $file_path        文件路径
 * @property string                     $file_source_path 原文件路径
 * @property string                     $file_url         文件访问URL
 * @property string                     $file_ext         文件扩展名
 * @property int                        $file_size        文件大小，单位B
 * @property int                        $user_id          用户ID，admin_users表主键
 * @property \Illuminate\Support\Carbon $created_at       创建时间
 * @property \Illuminate\Support\Carbon $updated_at       最后更新时间
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel query()
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFileExt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFileId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFileName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFilePath($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFileSize($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFileSourcePath($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereFileUrl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FileModel whereUserId($value)
 * @mixin \Eloquent
 */
class FileModel extends BaseModel
{
    protected $table = 'admin_file';

    protected $primaryKey = 'file_id';

    protected $fillable = [
        'file_name',
        'file_path',
        'file_source_path',
        'file_url',
        'file_ext',
        'file_size',
        'content_id',
        'content_type',
        'user_id',
    ];
}
